package com.passer.web.travel.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.passer.common.annotation.Excel;
import com.passer.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 游记攻略对象 t_youji
 *
 * @author passer
 * @date 2021-11-23
 */
public class TYouji extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 游记id */
    private Long yid;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 发表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 作者用户id */
    @Excel(name = "作者用户id")
    private Long uid;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String text;

    private String coverURL;

    public String getCoverURL() {
        return coverURL;
    }

    public void setCoverURL(String coverURL) {
        this.coverURL = coverURL;
    }

    public void setYid(Long yid)
    {
        this.yid = yid;
    }

    public Long getYid()
    {
        return yid;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getUid()
    {
        return uid;
    }
    public void setText(String text)
    {
        this.text = text;
    }

    public String getText()
    {
        return text;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("yid", getYid())
            .append("title", getTitle())
            .append("time", getTime())
            .append("uid", getUid())
            .append("text", getText())
            .toString();
    }
}
